package com.cool.dao;

import com.cool.entity.Favor;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface FavorMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Favor record);

    int insertSelective(Favor record);

    Favor selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Favor record);

    int updateByPrimaryKey(Favor record);

    ArrayList<Favor> selectByUserid(int userid);

    ArrayList<Favor> selectByName(String name);
}